import request from '@/utils/request'

// 查询商品满减列表
export function listSpuFullReduction(query) {
  return request({
    url: '/marketing/spuFullReduction/list',
    method: 'get',
    params: query
  })
}

// 查询商品满减详细
export function getSpuFullReduction(id) {
  return request({
    url: '/marketing/spuFullReduction/' + id,
    method: 'get'
  })
}

// 新增商品满减
export function addSpuFullReduction(data) {
  return request({
    url: '/marketing/spuFullReduction',
    method: 'post',
    data: data
  })
}

// 修改商品满减
export function updateSpuFullReduction(data) {
  return request({
    url: '/marketing/spuFullReduction',
    method: 'put',
    data: data
  })
}

// 删除商品满减
export function delSpuFullReduction(id) {
  return request({
    url: '/marketing/spuFullReduction/' + id,
    method: 'delete'
  })
}
